home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / theguard.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  10.0 KB  |  330 lines

  1. var ┬º\x01┬º = 938;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 938)
  5.    {
  6.       set("\x01",eval("\x01") - 588);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 646)
  10.    {
  11.       set("\x01",eval("\x01") - 58);
  12.       if(┬º┬ºpop())
  13.       {
  14.          set("\x01",eval("\x01") - 36);
  15.       }
  16.    }
  17.    else if(eval("\x01") == 813)
  18.    {
  19.       set("\x01",eval("\x01") - 537);
  20.       ┬º┬ºpush(true);
  21.    }
  22.    else if(eval("\x01") == 362)
  23.    {
  24.       set("\x01",eval("\x01") - 157);
  25.    }
  26.    else if(eval("\x01") == 350)
  27.    {
  28.       set("\x01",eval("\x01") - 200);
  29.       if(┬º┬ºpop())
  30.       {
  31.          set("\x01",eval("\x01") + 291);
  32.       }
  33.    }
  34.    else
  35.    {
  36.       if(eval("\x01") == 150)
  37.       {
  38.          set("\x01",eval("\x01") + 291);
  39.          ┬º┬ºpush(┬º┬ºpop() & ┬º┬ºpop());
  40.          break;
  41.       }
  42.       if(eval("\x01") == 931)
  43.       {
  44.          set("\x01",eval("\x01") - 407);
  45.       }
  46.       else if(eval("\x01") == 946)
  47.       {
  48.          set("\x01",eval("\x01") - 117);
  49.          ┬º┬ºpush(true);
  50.       }
  51.       else if(eval("\x01") == 277)
  52.       {
  53.          set("\x01",eval("\x01") + 369);
  54.          ┬º┬ºpush(true);
  55.       }
  56.       else if(eval("\x01") == 54)
  57.       {
  58.          set("\x01",eval("\x01") + 470);
  59.       }
  60.       else if(eval("\x01") == 552)
  61.       {
  62.          set("\x01",eval("\x01") - 94);
  63.       }
  64.       else
  65.       {
  66.          if(eval("\x01") != 62)
  67.          {
  68.             if(eval("\x01") == 379)
  69.             {
  70.                set("\x01",eval("\x01") + 153);
  71.             }
  72.             else
  73.             {
  74.                if(eval("\x01") == 345)
  75.                {
  76.                   set("\x01",eval("\x01") + 458);
  77.                   toggleHighQuality();
  78.                   throw ┬º┬ºpop();
  79.                }
  80.                if(eval("\x01") == 205)
  81.                {
  82.                   set("\x01",eval("\x01") + 174);
  83.                   continue;
  84.                }
  85.                if(eval("\x01") == 631)
  86.                {
  87.                   set("\x01",eval("\x01") + 315);
  88.                   continue;
  89.                }
  90.                if(eval("\x01") == 588)
  91.                {
  92.                   set("\x01",eval("\x01") - 36);
  93.                   break;
  94.                }
  95.                if(eval("\x01") == 520)
  96.                {
  97.                   set("\x01",eval("\x01") - 92);
  98.                   if(┬º┬ºpop())
  99.                   {
  100.                      set("\x01",eval("\x01") + 216);
  101.                   }
  102.                   continue;
  103.                }
  104.                if(eval("\x01") == 577)
  105.                {
  106.                   set("\x01",eval("\x01") - 300);
  107.                   continue;
  108.                }
  109.                if(eval("\x01") == 803)
  110.                {
  111.                   set("\x01",eval("\x01") - 127);
  112.                   continue;
  113.                }
  114.                if(eval("\x01") == 524)
  115.                {
  116.                   set("\x01",eval("\x01") - 306);
  117.                   ┬º┬ºpush(true);
  118.                   continue;
  119.                }
  120.                if(eval("\x01") == 173)
  121.                {
  122.                   set("\x01",eval("\x01") + 104);
  123.                   continue;
  124.                }
  125.                if(eval("\x01") == 559)
  126.                {
  127.                   set("\x01",eval("\x01") + 254);
  128.                   continue;
  129.                }
  130.                if(eval("\x01") == 820)
  131.                {
  132.                   set("\x01",eval("\x01") - 766);
  133.                   ┬º┬ºpush(random(┬º┬ºpop()));
  134.                   break;
  135.                }
  136.                if(eval("\x01") == 532)
  137.                {
  138.                   set("\x01",eval("\x01") - 532);
  139.                   break;
  140.                }
  141.                if(eval("\x01") == 676)
  142.                {
  143.                   set("\x01",eval("\x01") + 319);
  144.                   ┬º┬ºpush(true);
  145.                   continue;
  146.                }
  147.                if(eval("\x01") == 644)
  148.                {
  149.                   set("\x01",eval("\x01") + 182);
  150.                   continue;
  151.                }
  152.                if(eval("\x01") == 423)
  153.                {
  154.                   set("\x01",eval("\x01") + 523);
  155.                   continue;
  156.                }
  157.                if(eval("\x01") == 0)
  158.                {
  159.                   set("\x01",eval("\x01") + 62);
  160.                   break;
  161.                }
  162.                if(eval("\x01") == 747)
  163.                {
  164.                   set("\x01",eval("\x01") + 79);
  165.                   continue;
  166.                }
  167.                if(eval("\x01") == 458)
  168.                {
  169.                   set("\x01",eval("\x01") + 62);
  170.                   ┬º┬ºpush(true);
  171.                   continue;
  172.                }
  173.                if(eval("\x01") == 531)
  174.                {
  175.                   set("\x01",eval("\x01") - 186);
  176.                   if(┬º┬ºpop())
  177.                   {
  178.                      set("\x01",eval("\x01") + 458);
  179.                   }
  180.                   continue;
  181.                }
  182.                if(eval("\x01") == 995)
  183.                {
  184.                   set("\x01",eval("\x01") - 185);
  185.                   if(┬º┬ºpop())
  186.                   {
  187.                      set("\x01",eval("\x01") - 387);
  188.                   }
  189.                   continue;
  190.                }
  191.                if(eval("\x01") == 810)
  192.                {
  193.                   set("\x01",eval("\x01") - 387);
  194.                   toggleHighQuality();
  195.                   toggleHighQuality();
  196.                   return delete ┬º┬ºpop();
  197.                }
  198.                if(eval("\x01") == 276)
  199.                {
  200.                   set("\x01",eval("\x01") - 87);
  201.                   if(┬º┬ºpop())
  202.                   {
  203.                      set("\x01",eval("\x01") - 16);
  204.                   }
  205.                   continue;
  206.                }
  207.                if(eval("\x01") == 939)
  208.                {
  209.                   set("\x01",eval("\x01") - 263);
  210.                   continue;
  211.                }
  212.                if(eval("\x01") == 829)
  213.                {
  214.                   set("\x01",eval("\x01") - 9);
  215.                   if(┬º┬ºpop())
  216.                   {
  217.                      set("\x01",eval("\x01") - 766);
  218.                   }
  219.                   continue;
  220.                }
  221.                if(eval("\x01") == 826)
  222.                {
  223.                   set("\x01",eval("\x01") - 295);
  224.                   ┬º┬ºpush(true);
  225.                   continue;
  226.                }
  227.                if(eval("\x01") == 218)
  228.                {
  229.                   set("\x01",eval("\x01") - 218);
  230.                   if(┬º┬ºpop())
  231.                   {
  232.                      set("\x01",eval("\x01") + 62);
  233.                   }
  234.                   continue;
  235.                }
  236.                if(eval("\x01") == 189)
  237.                {
  238.                   set("\x01",eval("\x01") - 16);
  239.                   tellTarget(┬º┬ºpop() & ┬º┬ºpop())
  240.                   {
  241.                      nextFrame();
  242.                      break;
  243.                   }
  244.                }
  245.                if(eval("\x01") != 428)
  246.                {
  247.                   if(eval("\x01") == 811)
  248.                   {
  249.                      set("\x01",eval("\x01") - 353);
  250.                   }
  251.                   else
  252.                   {
  253.                      if(eval("\x01") != 441)
  254.                      {
  255.                         break;
  256.                      }
  257.                      set("\x01",eval("\x01") + 372);
  258.                   }
  259.                   continue;
  260.                }
  261.                set("\x01",eval("\x01") + 216);
  262.                Map.attachMovie("dog","Dog" + dogIndex,┬º┬ºpop() + ┬º┬ºpop() + dogIndex);
  263.                theDog = Map["Dog" + dogIndex];
  264.                dogsActive.push(theDog);
  265.                theDog._x = _loc3_ * tileWidth - 25;
  266.                theDog._y = _loc2_ * tileHeight - 25;
  267.                theDog.myIndex = dogIndex;
  268.                theDog.currentTile = _loc4_;
  269.                theDog.currentRow = _loc2_;
  270.                theDog.currentColumn = _loc3_;
  271.                theDog.currentDir = "Down";
  272.                theDog.chase = false;
  273.                theDog.onEnterFrame = function()
  274.                {
  275.                   if(gameInPlay)
  276.                   {
  277.                      this.lastDir = this.currentDir;
  278.                      this.lastTile = this.currentTile;
  279.                      this.currentRow = Math.ceil(this._y / tileHeight);
  280.                      this.currentColumn = Math.ceil(this._x / tileWidth);
  281.                      this.currentTile = whatNumber(this.currentColumn,this.currentRow);
  282.                      var _loc2_ = Map.Player.currentRow - this.currentRow;
  283.                      var _loc3_ = Map.Player.currentColumn - this.currentColumn;
  284.                      if(Math.abs(_loc3_) <= dogChaseRadius && Math.abs(_loc2_) <= dogChaseRadius)
  285.                      {
  286.                         this.chase = true;
  287.                      }
  288.                      else
  289.                      {
  290.                         this.chase = false;
  291.                      }
  292.                      if(this.chase)
  293.                      {
  294.                         this.speed = dogChaseSpeed;
  295.                         if(this.currentTile != this.lastTile)
  296.                         {
  297.                            this.currentDir = chooseOpponentDir(this);
  298.                         }
  299.                      }
  300.                      else
  301.                      {
  302.                         this.speed = dogSpeed;
  303.                      }
  304.                      moveClip(this);
  305.                      this.swapDepths(this.currentRow * 100 + dogDepth + this.myIndex);
  306.                   }
  307.                };
  308.                if(dogIndex < dogIndexMax)
  309.                {
  310.                   dogIndex++;
  311.                }
  312.                else
  313.                {
  314.                   dogIndex = 1;
  315.                }
  316.             }
  317.             stop();
  318.             getURL("FSCommand:allowscale",false);
  319.             funcHITBOX = function(arEvent, arAction)
  320.             {
  321.                lString = "javascript: _hbLink (\'/flash/" + arEvent.toLowerCase() + "/" + arAction.toLowerCase() + "\',\'left\',\'0,0,0,0\')";
  322.                getURL(lString,"");
  323.             };
  324.             break;
  325.          }
  326.          set("\x01",eval("\x01") + 143);
  327.       }
  328.    }
  329. }
  330.